import Vue from 'vue'
import request from './request.js'

const request2 = async (data) => {
    let res = await request(data)
    if (res.result != 0) {
        Vue.prototype.$message.warning(`${res.describe}:${res.result}`)
    }
    return res
}
export default request2